/* 仪表盘全局样式 */

/* 图表面板通用样式 */
.chart-panel {
  background-color: rgba(0, 21, 41, 0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(30, 177, 252, 0.3);
  display: flex;
  flex-direction: column;
  position: relative;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(0, 21, 41, 0.8);
  color: white;
  border-bottom: 1px solid rgba(30, 177, 252, 0.3);
  z-index: 2;
}

.panel-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
}

.panel-icon {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.panel-controls {
  display: flex;
  gap: 10px;
  z-index: 10;
}

.panel-body {
  flex: 1;
  padding: 10px;
  /* 使用统一的内边距，确保四周都有相同的空间 */
  display: flex;
  flex-direction: column;
  /* 改为纵向排列，使底部间距元素能够正确显示 */
  justify-content: flex-start;
  /* 从顶部开始排列 */
  align-items: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  /* 确保内边距不会增加元素的总尺寸 */
}

/* 确保下拉菜单在最上层 */
.el-select-dropdown {
  z-index: 3000 !important;
}

.el-popper {
  z-index: 3000 !important;
}

/* 图标样式 */
.speed-icon {
  background-image: url('../images/icons/speed.svg');
}

.production-icon {
  background-image: url('../images/icons/production.svg');
}

.status-icon {
  background-image: url('../images/icons/status.svg');
}

.alarm-icon {
  background-image: url('../images/icons/alarm.svg');
}

.efficiency-icon {
  background-image: url('../images/icons/efficiency.svg');
}

.realtime-icon {
  background-image: url('../images/icons/realtime.svg');
}

.device-icon {
  background-image: url('../images/icons/device.svg');
}

/* 响应式布局 */
@media screen and (max-width: 1600px) {
  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-wide {
    grid-column: span 2;
  }
}

@media screen and (max-width: 1200px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .panel-wide {
    grid-column: span 1;
  }
}